package Io;

import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.io.InputStream;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 666
 * Date: 2023-04-05
 * Time: 16:01
 */
public class test0 {
    public static void main(String[] args) {

        try(InputStream inputStream = new FileInputStream("hello.txt")){
while (true){
    int b=inputStream.read();
    if(b==-1){
        break;
    }
    System.out.print((char) b);

}
        } catch (FileNotFoundException e) {
            throw new RuntimeException(e);
        } catch (IOException e) {
            throw new RuntimeException(e);
        }
    }
}
